widget: Don't always call get_display() when allocating
authorTimm Bäder <mail@baedert.org>
Mon, 20 May 2019 11:46:36 +0000 (13:46 +0200)
committerTimm Bäder <mail@baedert.org>
Tue, 21 May 2019 06:17:13 +0000 (08:17 +0200)
commita474beb7b846772e3cf7d8f67c3745650a328062
tree8e73aad397e08b1630156c67c3a55577991ed487
parent321a21015ecc88dd51be2f665ea25cbc374e5c26
widget: Don't always call get_display() when allocating

The GTK_DISPLAY_DEBUG_CHECK macro will cleverly only call the function
if any of the display debug flags are set, so in the common case it
won't even be executed.
gtk/gtkwidget.c